<HTML><HEAD><TITLE>lib(++LibraryName, +ModuleName)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Obsolete</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>lib(++LibraryName, +ModuleName)</H1>
The library LibraryName is loaded into the module ModuleName if not loaded
already.


<DL>
<DT><EM>LibraryName</EM></DT>
<DD>String or Atom.
</DD>
<DT><EM>ModuleName</EM></DT>
<DD>Atom.
</DD>
</DL>
<H3>This built-in predicate is obsolete!</H3>
<H2>Description</H2>

   lib(Lib, Mod) is identical to use_module(library(Lib))@Mod.

<H3>Modes and Determinism</H3><UL>
<LI>lib(++, +) is det
</UL>
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>LibraryName is not instantiated.
<DT><EM>(5) type error </EM>
<DD>LibraryName is neither a string nor an atom.
<DT><EM>(173) library not found </EM>
<DD>The library file LibraryName cannot be found.
</DL>
<H2>See Also</H2>
<A HREF="../../kernel/compiler/ensure_loaded-1.html">ensure_loaded / 1</A>, <A HREF="../../kernel/compiler/lib-1.html">lib / 1</A>, <A HREF="../../kernel/modules/use_module-1.html">use_module / 1</A>, <A HREF="../../kernel/control/A-2.html">@ / 2</A>
</BODY></HTML>
